<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:background="@drawable/background"
    android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/shapewhite"
    android:orientation="vertical"
    android:layout_gravity="center_vertical"
    android:layout_marginRight="@dimen/_16sdp"
    android:layout_marginLeft="@dimen/_16sdp"
    tools:context=".activities.HomeActivity">



    <RelativeLayout
        android:layout_weight="0.5"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/_30sdp"
        android:layout_marginLeft="@dimen/_16sdp"
        android:layout_marginRight="@dimen/_16sdp"
        android:orientation="vertical">

        <!--codes t show headmasters name-->
        <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/shapetextview"
        android:orientation="horizontal">

            <ImageView
                android:id="@+id/img1"
                android:layout_width="@dimen/_20sdp"
                android:layout_height="@dimen/_20sdp"
                android:layout_alignParentStart="true"
                android:paddingTop="@dimen/_3sdp"
                app:srcCompat="@drawable/accounttie" />

        <TextView
        android:id="@+id/mastername"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="@string/sampleperson"
        android:textSize="@dimen/_17sdp" />

        </RelativeLayout>

        <!--codes to show the shool the headmaster heads-->
        <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="@dimen/_10sdp"
        android:orientation="horizontal">

        <ImageView
        android:id="@+id/home"
        android:layout_width="@dimen/_30sdp"
        android:layout_height="@dimen/_30sdp"
        android:layout_centerVertical="true"
        android:layout_marginLeft="@dimen/_12sdp"
        app:srcCompat="@drawable/home" />

            <TextView
                android:id="@+id/school"
                android:layout_width="@dimen/_150sdp"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@+id/home"
                android:layout_centerVertical="true"
                android:scrollHorizontally="true"
                android:ellipsize="end"
                android:singleLine="true"
                android:text="@string/sampleschool"
                android:textSize="@dimen/_15sdp" />

        </RelativeLayout>

        <!--codes to show shool's mmda-->
            <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:orientation="horizontal"
                android:padding="@dimen/_10sdp">

                <ImageView
                    android:id="@+id/location"
                    android:layout_width="@dimen/_28sdp"
                    android:layout_height="@dimen/_28sdp"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="@dimen/_13sdp"
                    app:srcCompat="@drawable/location" />

                <TextView
                    android:id="@+id/schoollocation"
                    android:layout_width="@dimen/_150sdp"
                    android:layout_height="wrap_content"
                    android:layout_centerInParent="true"
                    android:layout_toRightOf="@+id/location"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:scrollHorizontally="true"
                    android:text="@string/sampledistrict"
                    android:textSize="@dimen/_15sdp" />

            </RelativeLayout>
        </LinearLayout>

    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="0.5">

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/_16sdp"
            android:layout_marginRight="@dimen/_16sdp"
            android:layout_marginTop="@dimen/_10sdp"
            android:layout_marginBottom="@dimen/_30sdp"
            android:orientation="vertical">

            <!--codes to show completed name-->
            <!--<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
                <!--android:id="@+id/cmp"-->
                <!--android:layout_width="fill_parent"-->
                <!--android:layout_height="@dimen/_90sdp"-->
                <!--android:background="@drawable/shapetextview"-->
                <!--android:orientation="horizontal">-->

                <!--<ImageView-->
                    <!--android:id="@+id/img2"-->
                    <!--android:layout_width="@dimen/_63sdp"-->
                    <!--android:layout_height="@dimen/_76sdp"-->
                    <!--android:layout_centerVertical="true"-->
                    <!--android:layout_toStartOf="@+id/comp"-->
                    <!--app:srcCompat="@drawable/trophy" />-->

                <!--<TextView-->
                    <!--android:id="@+id/comp"-->
                    <!--android:layout_width="wrap_content"-->
                    <!--android:layout_height="wrap_content"-->
                    <!--android:layout_alignParentEnd="true"-->
                    <!--android:layout_alignParentTop="true"-->
                    <!--android:layout_margin="@dimen/_20sdp"-->
                    <!--android:layout_marginEnd="@dimen/_39sdp"-->
                    <!--android:layout_marginTop="@dimen/_20sdp"-->
                    <!--android:text="@string/samplecomple"-->
                    <!--android:textSize="@dimen/_20sdp" />-->

                <!--<TextView-->
                    <!--android:layout_width="@dimen/_153sdp"-->
                    <!--android:layout_height="wrap_content"-->
                    <!--android:layout_alignEnd="@+id/comp"-->
                    <!--android:layout_alignParentBottom="true"-->
                    <!--android:layout_marginBottom="@dimen/_25sdp"-->
                    <!--android:text="@string/samplecompleview" />-->

            <!--</RelativeLayout>-->


            <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="@dimen/_90sdp"
                android:layout_marginTop="@dimen/_10sdp"
                android:id="@+id/pen"
                android:background="@drawable/shapetextview"
                android:orientation="horizontal">

                <ImageView
                    android:id="@+id/person"
                    android:layout_width="@dimen/_25sdp"
                    android:layout_height="@dimen/_93sdp"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentTop="true"
                    app:srcCompat="@drawable/ic_work_black_24dp" />

                <TextView
                    android:id="@+id/pending"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentTop="true"
                    android:layout_marginEnd="@dimen/_39sdp"
                    android:layout_marginTop="@dimen/_23sdp"
                    android:text="@string/samplepending"
                    android:textSize="@dimen/_20sdp" />

                <Button
                    android:id="@+id/pronumber"
                    android:layout_width="@dimen/_25sdp"
                    android:layout_height="@dimen/_25sdp"
                    android:layout_alignParentEnd="true"
                    android:layout_alignTop="@+id/pending"
                    android:background="@drawable/badge_bg_with_shadow"
                    android:text="0"
                    android:textAlignment="center"
                    android:textColor="@color/white"/>

                <TextView
                    android:layout_width="@dimen/_153sdp"
                    android:layout_height="wrap_content"
                    android:layout_alignStart="@+id/pending"
                    android:layout_below="@+id/pending"
                    android:text="@string/samplependingview"
                    android:id="@+id/textView" />

            </RelativeLayout>

        </LinearLayout>

    </RelativeLayout>

</LinearLayout>
</ScrollView>